import { UpdateUserDto } from '@/interface/user'
import request from '@/utils/axios'
export function updateUser(data:UpdateUserDto) {
  return request({
    url: '/user/updateUser',
    method: 'post',
    data
  })
}

export function getUserInfo() {
  return request({
    url: '/user/getUserInfo',
    method: 'get'
  })
}

export function refreshToken(refreshToken:string) {
  return request({
    url: `/user/refresh?refreshToken=${refreshToken}`,
    method: 'get'
  })
}
